/**
 * @Date: 2022-04-21 10:50:36
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-21 11:03:20
 * @FilePath: \weibo-api\model\Like.js
 * @Description: 点赞表模型
 */
const sequelize = require("../db/seq");
const { DataTypes } = require("sequelize");
//创建模型 表名字为'blog'
const Like = sequelize.define("Like", {
  userId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
  blogId: {
    type: DataTypes.INTEGER,
    allowNull: false,
  },
  like_status: {
    type: DataTypes.BOOLEAN,
    allowNull: false,
    comment: "喜欢状态",
  },
});
module.exports = Like;
